This command checks the document for well-formedness by the definitions of the XML 1.0 specification. Every XML document must be well-formed and therefore XML Spy also automatically checks for well-formedness whenever a document is opened, saved, or the view mode is switched from source to grid or browser.
If the well-formedness check succeeds, a brief message is displayed at the bottom of the main window:
If any error is encountered during the well-formedness check, the source of the problem is hilited and a corresponding error message is shown:
Normally it is not permitted to save a mal-formed XML document, but XML Spy gives you a "Save anyway" option when the automatic well-formedness check upon saving fails. This can be useful, when you temporarily want to suspend your work and later resume it without being able to make the intermediate version of the file well-formed.
The Check well-formedness command normally operates on the frontmost main window, but you can also use the Check well-formedness command on any file, folder, or group of files in the active project window.
|
|